package com.oco.controller.index;

import java.util.Map;

import javax.servlet.http.HttpServletRequest;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 首页控制层
 * @author ZhiHong Zhang
 * @email it_javasun@yeah.net
 * @sine 上午9:23:29
 */
@RestController
public class IndexController {

	@RequestMapping("/") 
	public String index(
			HttpServletRequest request,
			Map<String, Object> model) {
		// 获取文件路径
		String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort(); 
        model.put("basePath", basePath);
      
        return "index";  
	}
	
}
